// OpenDialog.js

var height = 350;
var width = 450;
var left = (screen.availWidth - width)/2;
var top = (screen.availHeight - height)/2;


//===================================================================================================
function OpenNewWindowModeReglement(indToDel) 
{

b = window.open("ModeReglement.jsp?indToDel="+indToDel,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=370, height=150, left=380, top=225");
b.focus();

}
function OpenNewWindowMarque() 
{

b = window.open("Marque.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0, scrollbars=no, resizable=no, copyhistory=no, width=390, height=160, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowMarque(idSelected) 
{
/*
	var height = 160;
	var width = 390;
	var left = (screen.availWidth - width)/2;
	var top = (screen.availHeight - height)/2;
	if (window.showModalDialog)
	{
		var dialogArguments = new Object();
		var b = window.showModalDialog("Marque.jsp?UpdateId="+idSelected, "user", "dialogWidth=450px;dialogHeight=350px;scroll=no;status=no;");
	}		
	else			
	{  	
		var left = (screen.width-width)/2;
		var top = (screen.height-height)/2;
 		var b= window.open("Marque.jsp?UpdateId="+idSelected, ID, "modal,toolbar=false,location=false,directories=false,status=false,menubar=false,scrollbars=no,resizable=no,left="+left+",top="+top+",width="+width+",height="+height);
		b.focus();
	}
*/
b=window.open("Marque.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=390, height=160, left=380, top=225");
b.focus();
}

//===================================================================================================
function OpenNewWindowComposant() 
{

b = window.open("Composant.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=370, height=150, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowComposant(idSelected) 
{

b = window.open("Composant.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=370, height=150, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenNewWindowDimension() 
{

b = window.open("Dimension.jsp","user","toolbar=no, location=no, directories=no,menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=415, height=250, left=360, top=220");
b.focus();

}
//===================================================================================================
function OpenWindowDimension(idSelected) 
{

b = window.open("Dimension.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=415, height=235, left=360, top=225");
b.focus();

}
//===================================================================================================
function OpenNewWindowVat() 
{

b = window.open("Vat.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=350, height=160, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowVat(idSelected) 
{

b = window.open("Vat.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=350, height=160, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenNewWindowCouleur() 
{

b = window.open("Couleur.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=420, height=250, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowCouleur(idSelected) 
{

b = window.open("Couleur.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=420, height=250, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenNewWindowFournisseur() 
{

b = window.open("Fournisseur.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=550, height=270, left=310, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowFournisseur(idSelected) 
{

b = window.open("Fournisseur.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=650, height=270, left=350, top=225");
b.focus();

}
//===================================================================================================
function OpenNewWindowFamilleProduit() 
{

b = window.open("FamilleProduit.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=450, height=170, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowFamilleProduit(idSelected) 
{

b = window.open("FamilleProduit.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=450, height=170, left=380, top=225");
b.focus();

}
//===================================================================================================

function OpenNewWindowProduit() 
{

b = window.open("NouvProduit.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=750, height=455, left=140, top=155");
b.focus();

}
//===================================================================================================
function OpenWindowProduit(idSelected) 
{

b = window.open("NouvProduit.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=750, height=455, left=123, top=155");
b.focus();

}
//===================================================================================================
function OpenNewWindowGamme() 
{

b = window.open("Gamme.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=420, height=160, left=380, top=225");
b.focus();

}
//===================================================================================================
function OpenWindowGamme(idSelected) 
{

b = window.open("Gamme.jsp?UpdateId="+idSelected,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=420, height=160, left=380, top=225");
b.focus();

}
//===================================================================================================
//===================================================================================================

//===================================================================================================
function OpenShowProduit(idSelected,Dwindow) 
{

b = window.open("AffProduit.jsp?id_produit="+idSelected+"&IsWindow="+Dwindow,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=750, height=475, left=123, top=145");
b.focus();

}
//===================================================================================================

//===================================================================================================
function OpenWindowDevisType() 
{
/*
var d = new Date();
var ID = d.getDate()+""+d.getMonth() + 1+""+d.getFullYear()+""+d.getHours()+""+d.getMinutes()+""+d.getSeconds();

	var height = 170;
	var width = 280;
	var left = (screen.availWidth - width)/2;
	var top = (screen.availHeight - height)/2;
	if (window.showModalDialog)
	{
		var dialogArguments = new Object();
		var b = window.showModalDialog("DevisType.jsp", dialogArguments, "dialogWidth=280px;dialogHeight=170px;scroll=no;status=no;");
		if ("undefined" != typeof(b))
		{
			//HELLO	
		}
	}		
	else			
	{  	
		var left = (screen.width-width)/2;
		var top = (screen.height-height)/2;
 		var b= window.open("DevisType.jsp", ID, "modal,toolbar=false,location=false,directories=false,status=false,menubar=false,scrollbars=no,resizable=no,left="+left+",top="+top+",width="+width+",height="+height);
		b.focus();
	}
*/
b = window.open("DevisType.jsp","user","modal,toolbar=no, location=no, directories=no,menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=280, height=170, left=370, top=200");
b.focus();

}

//===================================================================================================
//===================================================================================================
function OpenSelectLigneCommande(id_Facture,Update,myType) 
{

b = window.open("SelectionLigneFacture.jsp?id_Facture="+id_Facture+"&myType="+myType+"&Update="+Update,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=530, height=300, left=250, top=145");
b.focus();

}
//===================================================================================================
//===================================================================================================
function OpenNewWindowQteFacturer(id_facture,ref_ligneCmd,qte_fac,Update,myType) 
{

b = window.open("QteFacturer.jsp?id_facture="+id_facture+"&ref_ligneCmd="+ref_ligneCmd+"&qte_fac="+qte_fac+"&Update="+Update+"&myType="+myType,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=no, copyhistory=no, width=280, height=120, left=367, top=200");
b.focus();

}

//===================================================================================================
function OpenRecherche() 
{

b = window.open("FindSearch.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=560, height=350, left=250, top=145");
b.focus();

}
//===================================================================================================

//===================================================================================================
function OpenSelectDestinataire(indToDel,Societe,ContactName,Service,Email,DestFax,Adresse,CP,Ville,Pays,Contact,Telephone,Portable,Fax,Mail) 
{

b = window.open("SelectionerDestinataires.jsp?indToDel="+indToDel+"&Societe="+Societe+"&ContactName="+ContactName+"&Service="+Service+"&Email="+Email+"&DestFax="+DestFax+"&Adresse="+Adresse+"&CP="+CP+"&Ville="+Ville+"&Pays="+Pays+"&Contact="+Contact+"&Telephone="+Telephone+"&Portable="+Portable+"&Fax="+Fax+"&Mail="+Mail,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=440, height=490, left=300, top=110");
b.focus();

}
//===================================================================================================
//===================================================================================================
function SelectedDestinatairesCommmande(indToDel,Societe,ContactName,Email) 
{

b = window.open("SelectionerDestinatairesCmde.jsp?indToDel="+indToDel+"&Societe="+Societe+"&ContactName="+ContactName+"&Email="+Email,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=450, height=350, left=300, top=110");
b.focus();

}
//===================================================================================================

//===================================================================================================

function SelectedDestinatairesFacture(indToDel,Societe,ContactName,Service,Email,DestFax,Adresse,CP,Ville,Pays,Contact,Telephone,Portable,Fax,Mail) 
{

b = window.open("SelectionerDestinatairesFacture.jsp?indToDel="+indToDel+"&Societe="+Societe+"&ContactName="+ContactName+"&Service="+Service+"&Email="+Email+"&DestFax="+DestFax+"&Adresse="+Adresse+"&CP="+CP+"&Ville="+Ville+"&Pays="+Pays+"&Contact="+Contact+"&Telephone="+Telephone+"&Portable="+Portable+"&Fax="+Fax+"&Mail="+Mail,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=450, height=490, left=300, top=110");
b.focus();

}
//===================================================================================================
function OpenNewWindowTest() 
{

b = window.open("<%=request.getContextPath() %>/ficheTechnique.jsp","user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=750, height=455, left=140, top=155");
b.focus();

}
function OpenNewWindowImprimante(idCom) 
{

b = window.open("impression.jsp?idCom="+idCom,"user","toolbar=no, location=no, directories=no, menubar=0,status=0,personalbar=0,  scrollbars=no, resizable=yes, copyhistory=no, width=950, height=655, left=40, top=50");
b.focus();

}
